package com.hmdp.config;

import org.redisson.*;
import org.redisson.api.*;
import org.redisson.config.*;
import org.springframework.context.annotation.*;

/**
 * @ClassName RedissonConfig
 * @Description
 * @Author CC
 * @DATE 2025/7/24 14:14
 * @Version 1.0
 */

@Configuration
public class RedissonConfig {

    @Bean
    public RedissonClient redissonClient() {
        Config config = new Config();
        config.useSingleServer().setAddress("redis://127.0.0.1:6379");
        return Redisson.create(config);
    }
}
